var WxParse = require('../../wxParse/wxParse.js');
var app = getApp();
Page({
  data:{
    imgUrls:'',//轮播图
    bannerUrl: app.globalData.apiUrl + '/public/uploads/banner/',
  },
  onLoad:function(){
    var that = this;
    var bannerUrl = that.data.bannerUrl;
    //获取轮播图
    wx.request({
      url: app.globalData.apiUrl + '/api/banner/get_banner',
      data:{},
      method:'GET',
      dataType:'json',
      success:function(res){
         that.setData({
            imgUrls:res.data,
            bannerUrl: bannerUrl
         })
      }
    }) 

   //获取公司详情
   wx.request({
     url: app.globalData.apiUrl + '/api/goods/get_info',
     data:{id:11},
     method:'GET',
     dataType:'json',
     success:function(res){
        WxParse.wxParse('content','html',res.data.content,that,0);
     },
     fail:function(){},
     complete:function(){},
   }) 
  },
  onShareAppMessage:function(e){
  },
})